package ricky.events
{
	import flash.events.Event;
	
	import ricky.scene.Camera;
	
	public class CameraEvent extends Event
	{
		/**
		 * 镜头移动事件
		 */
		public static const Camera_Move:String="camera_move";
		
		/**
		 * 镜头格子改变事件
		 */
		public static const Camera_Grid_Change:String="camera_grid_change";
		
		/**
		 * 镜头大小改变事件
		 */
		public static const Camera_Resize:String="camera_resize";
		
		public function CameraEvent(type:String,camera:Camera,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_camera=camera;
			super(type, bubbles, cancelable);
		}
		
		private var _camera:Camera;

		/**
		 * 镜头对象
		 */
		public function get camera():Camera
		{
			return _camera;
		}
		
		override public function clone():Event
		{
			return new CameraEvent(this.type,this._camera,this.bubbles,this.cancelable);
		}

	}
}